<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>



<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array( 
    'id'=>'page-form', 
    'enableAjaxValidation'=>false, 
)); ?>

	<p class="note">Поля со <span class="required">*</span> обязательны для заполнения.</p>

	<?php echo $form->errorSummary($model); ?>

	
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'username'); ?>


		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->textField($model,'password',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'password'); ?>

	
		<?php echo $form->labelEx($model,'ban'); ?>
		<?php //echo $form->textField($model,'ban'); ?>
        <?php echo $form->dropDownList($model, 'ban', array(1=>'Бан', 2=>'Нет бана'), array('class'=>'span1')); ?>
		<?php echo $form->error($model,'ban'); ?>



		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'email'); ?>
        <br />

	
	    <?php $this->widget('bootstrap.widgets.TbButton', array( 
            'buttonType'=>'submit', 
            'type'=>'primary', 
            'label'=>$model->isNewRecord ? 'Создать' : 'Сохранить', 
        )); ?>

<?php $this->endWidget(); ?>

